import axios, { Axios } from "axios";
const context = "/ucenter";

/**
 * 获取 StoreGroup 分页列表
 */
export function getStoreGroupPagination(data: any) {
  return axios.get(`${context}/storeGroup/pagination`, { params: data });
}

/**
 * 获取 StoreGroup 所有数据
 */
export function getStoreGroupAllList(data: any) {
  return axios.get(`${context}/storeGroup/all`, { params: data });
}

/**
 * 获取 StoreGroup 详情
 */
export function getStoreGroupDetailById(id: any) {
  return axios.get(`${context}/storeGroup/${id}`, { params: { id } });
}

/**
 * 新增 StoreGroup
 */
export function addStoreGroup(data: any) {
  return axios.post(`${context}/storeGroup`, data);
}

/**
 * 修改 StoreGroup
 */
export function updateStoreGroup(data: any) {
  return axios.put(`${context}/storeGroup`, data);
}

/**
 * 删除 StoreGroup
 */
export function batchRemoveStoreGroup(data: any) {
  return axios.post(`${context}/storeGroup/batchRemove`, data);
}
